Skip to content

ci: automate release workflow for snapshots and stable versions#1579

Merged
zimeg merged 8 commits intomainfrom
zimeg-ci-release
Apr 21, 2026
Merged

ci: automate release workflow for snapshots and stable versions#1579
zimeg merged 8 commits intomainfrom
zimeg-ci-release

Conversation

@zimeg
Copy link
Copy Markdown
Member

@zimeg zimeg commented Apr 20, 2026

Summary

This PR automates releases for snapshots and stable versions to fix #1422 👾 ✨

  • Snapshots: Optional updates that require approval for a selected branch
  • Stable: Releases require version bump and approval for publish

Notes

🔐 A new release key was saved:

C716D8933EE60B43B1E6B1936D5B6DF8D07BE057

Category

  • Other

Requirements

Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you agree to those rules.

@zimeg zimeg self-assigned this Apr 20, 2026
@zimeg zimeg requested a review from a team as a code owner April 20, 2026 23:53
@zimeg zimeg added the github_actions Pull requests that update GitHub Actions code label Apr 20, 2026
@zimeg zimeg marked this pull request as draft April 21, 2026 01:28
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.20%. Comparing base (92245ce) to head (3676504).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1579      +/-   ##
============================================
- Coverage     73.23%   73.20%   -0.03%     
  Complexity     4515     4515              
============================================
  Files           477      477              
  Lines         14285    14285              
  Branches       1488     1488              
============================================
- Hits          10462    10458       -4     
- Misses         2934     2935       +1     
- Partials        889      892       +3     
Flag Coverage Δ
jdk-14 73.20% <ø> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zimeg
Copy link
Copy Markdown
Member Author

zimeg commented Apr 21, 2026

📸 https://central.sonatype.com/service/rest/repository/browse/maven-snapshots

I confirmed with a sample app that this snapshot was uploaded as expected! These changes were useful:

repositories {
	mavenCentral()
	maven {
		url 'https://central.sonatype.com/repository/maven-snapshots/'
	}
}
dependencies {
	implementation("com.slack.api:bolt:1.48.1-SNAPSHOT")
	implementation("com.slack.api:bolt-socket-mode:1.48.1-SNAPSHOT")
	implementation("com.slack.api:bolt-jetty:1.48.1-SNAPSHOT")
}
$ gradle run

And edits surface recent enhancements from #1570 🎁

import com.slack.api.methods.response.canvases.CanvasesCreateResponse;

CanvasesCreateResponse example;
example.getDetail();

@zimeg
Copy link
Copy Markdown
Member Author

zimeg commented Apr 21, 2026

The deployment was rejected or didn't satisfy other protection rules.

👺 This is good.

Copy link
Copy Markdown
Member Author

@zimeg zimeg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗣️ A few comments of thoughts in mind!

name: Publish
if: github.repository == 'slackapi/java-slack-sdk'
runs-on: ubuntu-latest
environment: central
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🌲 praise: This was well documented here I found!

🔗 https://blog.7ori.dev/blog/2025/04/06/publishing-to-maven-central-with-github-actions/

Comment thread scripts/release.sh
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🫡 praise: Farewell to this scripts but I'm hoping upstreamed runs can have more stable packagings-

@zimeg zimeg marked this pull request as ready for review April 21, 2026 04:42
@zimeg
Copy link
Copy Markdown
Member Author

zimeg commented Apr 21, 2026

🚢 Will merge now with passing tests to confirm a stable release goes as expected and will follow up with all findings and suggestions ongoing!

@zimeg zimeg merged commit e71a912 into main Apr 21, 2026
7 checks passed
@zimeg zimeg deleted the zimeg-ci-release branch April 21, 2026 04:44
@zimeg zimeg added this to the 1.48.1 milestone Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New release key not mentioned in release notes?

1 participant